{template 'header'}
<div class="main">
  <h2 class="pubtitle"><span>我的家教</span>
    <div class="c"></div>
  </h2>
  <div class="msg message f14"><span class="aaa f14">点击 “改” 修改已发布的信息。</span>&nbsp;&nbsp;<span class="f14 aaa">点击 “删?” 删除已发布的信息</span></div>
  <div class="table-form" style="border-right:1px solid #E5E5E5; width:750px;float:left;">
  
   {loop $data as $dv}
    <div class="inputbox">
      <label class="t" style="width:20px;">&nbsp;</label>
      <a href="?m=index&c=show&id={$dv['id']}"><span class="f14 green">{$dv['title']}</span></a>
      <a href="javascript:void(0);" onclick="del({$dv['id']});" style="margin-left:20px;"><span class="red f14">删?</span></a>
      <a href="?m=index&c=content&a=edit&id={$dv['id']}" style="margin-left:5px;"><span class="green f14">改</span></a>
      <span class="aaa" style="text-align:right">{$dv['updatetime']}</span>
    </div>
   {/loop}
   {if !$data}
	<div class="inputbox">
      <label class="t" style="width:20px;">&nbsp;</label>
      <span class="green f14">您暂时还没发布信息，</span>
      <a href="?m=index&c=content&a=pub"><span class="green f14">立即发布一条</span></a>
    </div>
   {/if}
   {$page_nav}
  </div>
</div>
{template 'footer'}
<link href="{CSS_PATH}dialog.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="{JS_PATH}dialog.js?_=0515"></script> 
<script type="text/javascript">
function del(id)
{
	art.dialog(
	{
		title:'你确定删除这条信息吗？',
		content: '<p style="padding:4px;">你确定要删除这条信息吗？<br />删除之后无法恢复</p>',
		fixed:true,
		id:'del_role'
	},
	function ()
	{
		$.get('?m=index&c=content&a=del&id=' + id + '&_=' + new Date().getTime(), function(data)
		{
			if(data == "1"){window.location.reload();}
		});},function(){art.dialog({id:'del_role'}).close();});
}
</script>